<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $model common\models\Article */

$this->title = "查看二维码";
$this->params['breadcrumbs'][] = ['label' => 'Articles', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="article-view">


    <p>
        <?= Html::a('返回', ['index'], ['class' => 'btn btn-primary']) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'title',
//            'content:ntext',
            ['attribute'=>'inputtime',
                'format'=>['date','php:Y-m-d H:i:s'],
            ],
            [
                'label' => '二维码',
                'value' => '111111',
            ],

        ],
    ]) ?>
    <img src="<?= Url::to(['index/qrcode'])?>" />
</div>
